/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * ExhibitorManagement.java
 *
 * Created on Aug 11, 2010, 2:56:40 PM
 */

package Gui;

/**
 *
 * @author Administrator
 */
public class pnExhibitor extends javax.swing.JPanel {

    /** Creates new form ExhibitorManagement */
    public pnExhibitor() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnExhibi = new javax.swing.JPanel();
        lbSource = new javax.swing.JLabel();
        lblExhibitor = new javax.swing.JLabel();
        pnProduct = new javax.swing.JPanel();
        lbSource1 = new javax.swing.JLabel();
        lblProduct = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));
        setLayout(null);

        pnExhibi.setBackground(new java.awt.Color(255, 255, 255));
        pnExhibi.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Exhibitor Management", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        pnExhibi.setLayout(null);

        lbSource.setText("<html>\n<b>Function:</b><br>\n Display all information of Exhibitors<br>\n Create,  update  information of Exhibitor and Save it on Exhibitor table.<br>\n You can display history of Exhibitor.<br><br>\n<b>Notes:</b><br>\nWhen Exhibitor join Expo, Status of Exhibitor must be JOIN.\n</html>");
        pnExhibi.add(lbSource);
        lbSource.setBounds(30, 20, 510, 110);

        lblExhibitor.setBackground(new java.awt.Color(255, 255, 255));
        lblExhibitor.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblExhibitor.setForeground(new java.awt.Color(0, 70, 213));
        lblExhibitor.setText("<html> <u>Exhibitor Management</u> </html>");
        lblExhibitor.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                lblExhibitorMousePressed(evt);
            }
        });
        pnExhibi.add(lblExhibitor);
        lblExhibitor.setBounds(390, 170, 140, 20);

        add(pnExhibi);
        pnExhibi.setBounds(20, 20, 560, 210);

        pnProduct.setBackground(new java.awt.Color(255, 255, 255));
        pnProduct.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEtchedBorder(), "Product Management", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        pnProduct.setLayout(null);

        lbSource1.setText("<html>\n<b>Function:</b><br>\n A complete product guide and exhibitor directory is easy to use.<br>\n Create,  update  information of Product belong with a Exhibitor and You can store it on Product table.<br><br>\n<b>Notes:</b><br>\nWhen change product information of a Exhibitor, lastChange date in Exhibitor account also change.\n</html>");
        pnProduct.add(lbSource1);
        lbSource1.setBounds(30, 30, 500, 90);

        lblProduct.setBackground(new java.awt.Color(255, 255, 255));
        lblProduct.setFont(new java.awt.Font("Tahoma", 1, 11));
        lblProduct.setForeground(new java.awt.Color(0, 70, 213));
        lblProduct.setText("<html> <u>Product Management</u> </html>");
        lblProduct.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mousePressed(java.awt.event.MouseEvent evt) {
                lblProductMousePressed(evt);
            }
        });
        pnProduct.add(lblProduct);
        lblProduct.setBounds(400, 150, 140, 20);

        add(pnProduct);
        pnProduct.setBounds(20, 240, 560, 190);

        getAccessibleContext().setAccessibleParent(this);
    }// </editor-fold>//GEN-END:initComponents

    private void lblExhibitorMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblExhibitorMousePressed
        // TODO add your handling code here:
        DLExhibitor ex = new DLExhibitor(null, true);
        ex.setVisible(true);
    }//GEN-LAST:event_lblExhibitorMousePressed

    private void lblProductMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_lblProductMousePressed
        // TODO add your handling code here:
        DLProduct pr = new DLProduct(null, true);
        pr.setVisible(true);

    }//GEN-LAST:event_lblProductMousePressed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel lbSource;
    private javax.swing.JLabel lbSource1;
    private javax.swing.JLabel lblExhibitor;
    private javax.swing.JLabel lblProduct;
    private javax.swing.JPanel pnExhibi;
    private javax.swing.JPanel pnProduct;
    // End of variables declaration//GEN-END:variables

}
